home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / SecalDemo / Inc / resources / disk.inc < prev    next >
Text File  |  1998-06-24  |  1KB  |  59 lines

  1. include "inc/exec/types.inc";
  2. include "inc/exec/lists.inc";
  3. include "inc/exec/ports.inc";
  4. include "inc/exec/interrupts.inc";
  5. include "inc/exec/libraries.inc";
  6.  
  7. struct DiscResourceUnit is
  8.   dru_Message:Message;
  9.   dru_DiscBlock:Interrupt;
  10.   dru_DiscSync:Interrupt;
  11.   dru_Index:Interrupt;
  12. ;
  13.  
  14. struct DiscResource is
  15.   dr_Library:Library;
  16.   dr_Current:ulong;
  17.   dr_Flags:ubyte;
  18.   dr_pad:ubyte;
  19.   dr_SysLib:ulong;
  20.   dr_CiaResource:ulong;
  21.   dr_UnitID[4]:ulong;
  22.   dr_Waiting:List;
  23.   dr_DiscBlock:Interrupt;
  24.   dr_DiscSync:Interrupt;
  25.   dr_Index:Interrupt;
  26.   dr_CurrTask:ulong;
  27. ;
  28.  
  29. def DRB_ALLOC0 = 0;
  30. def DRB_ALLOC1 = 1;
  31. def DRB_ALLOC2 = 2;
  32. def DRB_ALLOC3 = 3;
  33. def DRB_ACTIVE = 7;
  34.  
  35. def DRF_ALLOC0 = (1<<0);
  36. def DRF_ALLOC1 = (1<<1);
  37. def DRF_ALLOC2 = (1<<2);
  38. def DRF_ALLOC3 = (1<<3);
  39. def DRF_ACTIVE = (1<<7);
  40.  
  41. def DSKDMAOFF = $4000;
  42.  
  43. def DISKNAME = "disk.resource";
  44.  
  45. def DR_ALLOCUNIT = (LIB_BASE-0*LIB_VECTSIZE);
  46. def DR_FREEUNIT = (LIB_BASE-1*LIB_VECTSIZE);
  47. def DR_GETUNIT = (LIB_BASE-2*LIB_VECTSIZE);
  48. def DR_GIVEUNIT = (LIB_BASE-3*LIB_VECTSIZE);
  49. def DR_GETUNITID = (LIB_BASE-4*LIB_VECTSIZE);
  50. def DR_READUNITID = (LIB_BASE-5*LIB_VECTSIZE);
  51.  
  52. def DR_LASTCOMM = (DR_READUNITID);
  53.  
  54. def DRT_AMIGA = ($00000000);
  55. def DRT_37422D2S = ($55555555);
  56. def DRT_EMPTY = ($ffffffff);
  57. def DRT_150RPM = ($aaaaaaaa);
  58.  
  59.